package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 请求参数限定
 * @author stone
 * @date 2022/03/24 11:00
 */
@Controller("param") //指定组件id
@RequestMapping("param")//窄化请求
public class ParamLimitController {

    @RequestMapping(value = "login", params = {"username", "password"})
    @ResponseBody
    public String login() {
        return "login";
    }

}
